﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="gdzgTop.aspx.cs" Inherits="morning_gdzgTop" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.query.url.js" type="text/javascript"></script>
      <script src="../My97DatePicker/WdatePicker.js"></script>
<script>
    $(document).ready(function () {
        $("#btnSelect").click(function () {
            var userName = $("#txtUserName").val()
            var typeTop = $("#ddlType").val();
            var date = $("#stime").val();
            var url = "gdzgTop.aspx?";
            var con = "";
            if (userName != "") {
                if (con != "") {
                    con += "&userName=" + userName;
                }
                else {
                    con = "userName=" + userName;
                }
            }

            if (typeTop != "") {
                if (con != "") {
                    con += "&typeTop=" + typeTop;
                }
                else {
                    con = "typeTop=" + typeTop;
                }
            }
            if (date != "") {
                if (con != "") {
                    con += "&date=" + date;
                }
                else {
                    con = "date=" + date;
                }
            }
            document.location = url + con;
        })
    })

</script>
</head>
<body>
<div class="page_title">股动中国统计排名</div>
    <form id="form1" runat="server">
    <div class="button_bar">
        <asp:Button ID="btnAdd" CssClass="common_button" runat="server" Text="添加" OnClientClick="document.location='addGdzgTop.aspx';return false;" />
       <input type="button" id="btnSelect" value="查询" class="common_button" />
         
    </div>
    <table class="query_form_table" style="width:60%">
        <tr>
        <th>
            排名类型
            </th>
            <td>
            <asp:DropDownList ID="ddlType" runat="server" AppendDataBoundItems="True" 
                DataTextField="name" DataValueField="id">
                <asp:ListItem Value="日收益排名">日收益排名</asp:ListItem>
                <asp:ListItem Value="总收益排名">总收益排名</asp:ListItem>
            </asp:DropDownList>
            </td>
            <th>
                用户名
            </th>
            <td>
                <input type="text" id="txtUserName" />
            </td>
             <th>
                交易日期</th>
            <td>
        <input class="Wdate" type="text" id="stime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
            </td>
            
          
        </tr>
       
    </table>
    <table class="data_list_table">
        <tr>
            <th>
                排名
            </th>
            <th>
                用户名
            </th>
            <th>
                上日排名
            </th>
            <th>
                日收益率
            </th>
            <th>
                总收益率
            </th>
            <th>
                总资产(万)
            </th>
             <th>
                仓位
            </th>
            <th>
                日盈利率
            </th>
             <th>
                累计成交金额 
            </th>
             <th>
                操作
            </th>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" >
            <ItemTemplate>
                <tr>
                    <td class="list_data_number" align="center">
                        <%#Eval("rowNum")%>
                    </td>
                    <td class="list_data_text">
                        <%# Eval("userName") %>
                    </td>
                    <td class="list_data_text">
                        <%# Eval("ydayTop")%>
                    </td>
                    <td class="list_data_text">
                        <%#DataBinder.Eval(Container.DataItem, "dayrate", "{0:p}")%>
                    </td>
                    <td class="list_data_ltext">
                        <%#DataBinder.Eval(Container.DataItem, "totalrate", "{0:p}")%>
                    </td>
                          <td class="list_data_ltext">
                        <%# Eval("amount")%>
                    </td>
                          <td class="list_data_ltext">
                           <%#DataBinder.Eval(Container.DataItem, "stockPositions", "{0:p}")%>
                    </td>
                     <td class="list_data_ltext">
                      <%#DataBinder.Eval(Container.DataItem, "dProfitRate", "{0:p}")%>
                    </td>
                    </td>
                     <td class="list_data_ltext">
                        <%# Eval("totalAmount")%>
                    </td>
                    <td class="list_data_ltext">
                        <a href='EditGdzgTop.aspx?id=<%# Eval("id") %>'>
                            <img src="../images/bt_edit.gif" alt="修改" title="修改" /></a> <a href='delGdzgTop.aspx?id=<%# Eval("id") %>' onclick="return confirm('确定删除？')">
                                <img src="../images/bt_del.gif" alt="删除" />
                            </a>
                    </td>
               </tr>
            </ItemTemplate>
        </asp:Repeater>
  <%--      <tr>
            <th colspan="10" class="pager">
                <div class="pager">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server"
                        PageSize="10" onpagechanged="AspNetPager1_PageChanged" 
                        onpagechanging="AspNetPager1_PageChanging">
                    </webdiyer:AspNetPager>
                </div>
            </th>
        </tr>--%>
    </table>
    </form>
</body>
</html>